package com.wisdytech.common.config.redis;

import java.io.Serializable;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * jedis配置类
 * @author dlb
 *
 */
@Component
@ConfigurationProperties(prefix="spring.redis")
public class JedisConfig implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 4291827898319052733L;
	
	private String host;  
    private int port;  
    private String password;
    private Integer timeout;
    private Integer database;
    @Value("${spring.redis.pool.max-idle}") 
    private Integer maxIdle;  
    @Value("${spring.redis.pool.min-idle}") 
    private Integer minIdle;  
    
	public Integer getDatabase() {
		return database;
	}
	public void setDatabase(Integer database) {
		this.database = database;
	}
	public Integer getTimeout() {
		return timeout;
	}
	public void setTimeout(Integer timeout) {
		this.timeout = timeout;
	}
	public String getHost() {
		return host;
	}
	public void setHost(String host) {
		this.host = host;
	}
	public int getPort() {
		return port;
	}
	public void setPort(int port) {
		this.port = port;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	
	public Integer getMaxIdle() {
		return maxIdle;
	}
	public void setMaxIdle(Integer maxIdle) {
		this.maxIdle = maxIdle;
	}
	public Integer getMinIdle() {
		return minIdle;
	}
	public void setMinIdle(Integer minIdle) {
		this.minIdle = minIdle;
	}
	
    
    
    

}
